home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / cwscr.exe / MYSCRLL.H < prev    next >
Text File  |  1991-05-22  |  1KB  |  62 lines

  1. /*
  2.     Scrolling file window module class specification.
  3.  
  4.     This is the header file that should be used when access to a
  5.     window that will scroll through a file a page by page.
  6.  
  7.     Library : mycpp.lib
  8. */
  9.  
  10. #ifndef __MYSCRLL_H__
  11. #define __MYSCRLL_H__
  12.  
  13. static char MyScrllh[] = "myscrll.h     1.00 04/05/91";
  14. /*
  15.     Version notes :
  16.         1.0 - Original creation / release.
  17. */
  18.  
  19.  
  20. #include <stdio.h>
  21. #include <conio.h>
  22. #include "myscr.h"
  23. #include "mymou.h"
  24.  
  25. /* ================================================================== */
  26.  
  27. #ifndef TRUE
  28.     #define TRUE    1
  29.     #define FALSE   0
  30. #endif
  31.  
  32. /* ------------------------------------------------------------------ */
  33. class myScroll {
  34.     int         x, y, w, h;
  35.     FILE        *fp;
  36.     myScreen    *scroll_screen;
  37.     myMouse     aMouse;
  38.  
  39.     void wait();
  40.     int  next_page();
  41.  
  42. public:
  43.     myScroll(){
  44.         x = y = 0;
  45.         w = 80;
  46.         h = 24;
  47.         scroll_screen = new myScreen;
  48.     };
  49.     myScroll( int X, int Y, int W, int H ){
  50.         x = X;
  51.         y = Y;
  52.         w = W;
  53.         h = H;
  54.         scroll_screen = new myScreen;
  55.     };
  56.  
  57.     void display( char *filename );
  58. };
  59.  
  60. #endif
  61.  
  62.